Skip to content

ResourceManager: Minor logging and implementation refinements#50

Open
nigels-com wants to merge 1 commit intoCalcProgrammer1:masterfrom
nigels-com:ResourceManager-logging
Open

ResourceManager: Minor logging and implementation refinements#50
nigels-com wants to merge 1 commit intoCalcProgrammer1:masterfrom
nigels-com:ResourceManager-logging

Conversation

@nigels-com
Copy link

I felt that having a I2CDIMMDeviceDetectorBlock reference clarified this loop.

if(i2c_dimm_device_detectors[i2c_detector_idx].dimm_type == dimm_type &&
is_jedec_in_slots(slots, i2c_dimm_device_detectors[i2c_detector_idx].jedec_id))
{
detection_string = i2c_dimm_device_detectors[i2c_detector_idx].name.c_str();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't seem harmful to lift this out of the if block.
But I'm new to the codebase, and since detection_string is visible elsewhere, thought I should call it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant